package com.neuedu.corejava.ch3.homework;
//Rhombus菱形
public class Rhombus {

	public static void main(String[] args) {
		int size=5;
		for (int i = 1; i <= size; i++) {
			for (int j = 1; j <= size - i; j++) {
				System.out.print(" ");
			}
			
			for (int k = 1; k <= 2 * i - 1; k++) {
				System.out.print('*');
			}
			System.out.println();
		}
		for (int i = 1; i <= size-1; i++) {
			for (int j = 1; j <= i; j++){
				System.out.print(" ");
			}
			
			for (int k = 2*size-3; k >= 2 * i - 1; k--){
				System.out.print('*');
			}
			System.out.println();
		}
 
	}

}
